<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\adminLog\AdminLog */

$this->title = "详情";
$this->params['breadcrumbs'][] = ['label' => '日志管理', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<?php $this->beginBlock('siderbar'); ?>
<?= $this->render('//layouts/sys-menu') ?>
<?php $this->endBlock(); ?>
<div class="admin-log-view">



    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'log_id',
            [
                'attribute' => 'log_time',
                'format' =>  ['date', 'php:Y-m-d H:i:s'],
            ],
            [
				'attribute' => 'user_id',
				'value' => $model->getUserName($model->user_id),
				'format' => 'raw',
			],
            'log_info',
            'ip_address',
        ],
    ]) ?>

</div>
